package common.db.test;

/**
 * Created by IntelliJ IDEA.
 * User: etran
 * Date: 09-Apr-2009
 * Time: 14:55:45
 * To change this template use File | Settings | File Templates.
 */
public class MultiTestMain
{
	public static void main(String[] args)
	{
		Thread threads[] = {
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
				new Thread(new TestMain()),
		};

		for (Thread thread : threads)
			thread.start();

		for (Thread thread : threads)
			try
			{
				thread.join();
			}
			catch (InterruptedException e)
			{
				e.printStackTrace();
			}
	}
}
